package org.example.com.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 帖子点赞实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PostLike implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;
    private Integer postId;
    private Integer userId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
